package dsk.demo.product.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 配置自定义 mybatis SQL解析器
 */
@Configuration
public class MybatisPlusPageHelperConfig {

    /**
     * 自定义 mybatis SQL解析器
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor().setDialectClazz("dsk.demo.product.config.MyDialect");
    }

}
